{layout name="public/layout" /}
{include file='yxnavbar'}



{include file='../../plugin/shopplan/template/web/shopplan_common_nav'}
{if $system['is_shop_plan']==1}
<form id="form1" class="form form-horizontal" action="{php echo createWebUrlPlugin('shopplan.editlogo',array('shopid'=>$shopid,'themeid'=>$themeid,'storeid'=>$storeid));}" enctype ="multipart/form-data" method="post"> 
<div class="col-xs-12 col-sm-2 col-md-2" style="float:right;">
	<select name="shopid" id="mySelect">
		{loop $shopconfig $k $item}
			<option value="{$item['shopid']}" {if $item['shopid']== $shopid}selected{/if}>{$item['name']}</option>
		{/loop}
	</select>
</div>
<div class="panel panel-default" role="tabpanel" style="">
    <div class="panel-heading">分店LOGO</div>
       <div class="panel-body" style="">
				
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">分店LOGO</label>
				<div class="col-sm-8 col-xs-12"  style="width:30%;">
					{php echo view_form_field_image('logo',$shops['logo']);}
					<span class="help-block">分店LOGO</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">分店名称</label>
				<div class="col-sm-9 col-xs-12" style="top:7px;">{$shops['name']}</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">分店地址</label>
				<div class="col-sm-9 col-xs-12" style="top:7px;">{$shops['address']}</div>
			</div>					
			<div class="form-group">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">分店电话</label>
				<div class="col-sm-9 col-xs-12" style="top:7px;">{$shops['phone']}</div>
			</div>									
										

</div></div></div>


<input name="submit" type="submit" value="提交LOGO" class="btn btn-primary col-lg-2">
</form>	
{/if} 
<script>
	//分店选择事件
    $("#mySelect").change(function(){  
		//添加所需要执行的操作代码
		var shopid =$("#mySelect").val();
		var success_redirect ="{php echo createWebUrlPlugin('shopplan.editlogo',array('storeid'=>$storeid));}";
		    success_redirect+='&shopid='+shopid;
            window.location.href = success_redirect;
		  
    })    
</script>
